package com.swyc.osschat.Test.designMode.command.impl;

import com.swyc.osschat.Test.designMode.command.base.Command;
import com.swyc.osschat.Test.designMode.command.dto.Tv;

/**
 * @description 具体命令角色：关闭电视
 * @Author: z156940l@outlook.com
 * @className OffTvCommand
 * @Date: 2022/7/21 17:20
 */
public class OffTvCommand implements Command {
    private Tv tv;

    public OffTvCommand(Tv tv) {
        this.tv = tv;
    }

    @Override
    public void execute() {
        tv.offTv();
    }
}
